for j   in  range(1,10,1): 
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        
    print("")

print("="*80)
       
for j   in  range(9,0,-1): 
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        
    print("")

print("="*80)



    

print("="*65)
       
for i  in  range(0,10,1):

   for k in range(1,9-i):
         print(end="         ")
   for j in range(1,i,1):
         print('{}*{}={:>2}'.format(i,j,i*j),end=' ')
   print('  ')

print("="*65)

for i  in  range(9,0,-1):

   for k in range(1,10-i):
         print(end="         ")
   for j in range(i,0,-1):
         print('{}*{}={:>2}'.format(i,j,i*j),end=' ')
   print('  ')
print('='*65)

